{ "swagger" : "2.0", "info" : { "description" : "AcBalance", "version" : "v1.0.0", "title" : "AcBal" }, "host" : "localhost:9089", "basePath" : "/api/v1.0.0/", "tags" : [ ], "schemes" : [ "http", "https" ], "security" : [ { "basicAuth" : [ ] }, { "apiKey" : [ ] } ], "paths" : { "/party/v1.0.0/party/accounts/{accountId}" : { "get" : { "tags" : [ ], "operationId" : "getAcBal", "produces" : [ "application/json" ], "parameters" : [ { "name" : "accountId", "in" : "path", "description" : "Identifier of the account. Often referred to as the account number, yet for consistency this is always referred to as accountId. Accepts both IBAN & BBAN", "required" : true, "type" : "string" }, { "name" : "page_size", "in" : "query", "description" : "The total number of records per page", "required" : false, "type" : "integer", "format" : "int32" }, { "name" : "page_start", "in" : "query", "description" : "The record from which the response should be displayed", "required" : false, "type" : "integer", "format" : "int32" }, { "name" : "page_token", "in" : "query", "description" : "Unique id expected to get as part of response from Transact on every enquiry request.", "required" : false, "type" : "string" }, { "name" : "credentials", "in" : "header", "description" : "Username and password to authenticate the API against core-banking.", "required" : false, "type" : "string" }, { "name" : "companyId", "in" : "header", "description" : "Identifier of the lead company of the underlying Entity/Company/Branch for the respective contract for customer data protection purposes. Example US0010001.", "required" : false, "type" : "string" }, { "name" : "deviceId", "in" : "header", "description" : "Identifies the device type", "required" : false, "type" : "string" }, { "name" : "userRole", "in" : "header", "description" : "User who initiated the transaction", "required" : false, "type" : "string" }, { "name" : "disablePagination", "in" : "header", "description" : "Indicates the pagination header attributes availability. If set to 'true', it fetches all the data", "required" : false, "type" : "boolean" } ], "responses" : { "200" : { "description" : "AcBalResponse", "schema" : { "$ref" : "#/definitions/AcBalResponse" } }, "default" : { "description" : "QueryErrorResponse", "schema" : { "$ref" : "#/definitions/QueryErrorResponse" } }, "400" : { "description" : "BusinessQueryErrorResponse", "schema" : { "$ref" : "#/definitions/BusinessQueryErrorResponse" } }, "500" : { "description" : "SystemQueryErrorResponse", "schema" : { "$ref" : "#/definitions/SystemQueryErrorResponse" } } } } } }, "securityDefinitions" : { "basicAuth" : { "type" : "basic" }, "apiKey" : { "type" : "apiKey", "name" : "Authorization", "in" : "header" } }, "definitions" : { "QueryHeader" : { "properties" : { "audit" : { "type" : "object", "properties" : { "T24_time" : { "type" : "integer", "format" : "int32", "description" : "Time taken to response by Transact" }, "versionNumber" : { "type" : "string", "description" : "The CURR.NO. of the record" }, "requestParse_time" : { "type" : "number", "description" : "Time taken to parse the request by IRIS" }, "responseParse_time" : { "type" : "number", "description" : "Time taken to parse the response by IRIS" } } }, "status" : { "type" : "string", "description" : "Status of the API(success/failed)" }, "page_size" : { "type" : "integer", "format" : "int32", "description" : "The total number of records per page" }, "page_start" : { "type" : "integer", "format" : "int32", "description" : "The record from which the response should be displayed" }, "total_size" : { "type" : "integer", "format" : "int32", "description" : "The total number of records present" }, "page_token" : { "type" : "string", "description" : "Unique id expected to get as part of response from Transact on every enquiry request" } } }, "AcBalResponse" : { "properties" : { "header" : { "$ref" : "#/definitions/QueryHeader" }, "body" : { "$ref" : "#/definitions/AcBalResponseBody" } }, "description" : "AcBalResponse" }, "AcBalResponseBody" : { "type" : "array", "items" : { "type" : "object", "properties" : { "accountId" : { "type" : "string", "description" : "Identifier of the account. Often referred to as the account number, yet for consistency this is always referred to as accountId. Accepts both IBAN & BBAN" }, "accountIBAN" : { "type" : "string", "description" : "Represents the International Bank Account Number (IBAN) of the account. E.g. GB29 NWBK 6016 1331 9268 19" }, "currency" : { "type" : "string", "description" : "Identifies the currency. E.g. USD, GBP etc" }, "availableBalance" : { "type" : "number", "description" : "Available balance of the account which is the projected balance which includes the net movements of both debits and credits against the account.", "maximum" : 25 } } } }, "ErrorHeader" : { "properties" : { "audit" : { "type" : "object", "properties" : { "T24_time" : { "type" : "integer", "format" : "int32", "description" : "Time taken to response by Transact" }, "versionNumber" : { "type" : "string", "description" : "The CURR.NO. of the record" }, "requestParse_time" : { "type" : "number", "description" : "Time taken to parse the request by IRIS" }, "responseParse_time" : { "type" : "number", "description" : "Time taken to parse the response by IRIS" } } }, "status" : { "type" : "string", "description" : "Status of the API(success/failed)" } } }, "QueryErrorResponse" : { "properties" : { "header" : { "$ref" : "#/definitions/ErrorHeader" }, "error" : { "$ref" : "#/definitions/QueryErrorResponseBody" } }, "description" : "QueryErrorResponse" }, "QueryErrorResponseBody" : { "type" : "object", "properties" : { "code" : { "type" : "string", "description" : "The identifier of the error message" }, "message" : { "type" : "string", "description" : "The actual Transact error message " }, "type" : { "type" : "string", "description" : "The identifier of error type: " } } }, "BusinessQueryErrorResponse" : { "properties" : { "header" : { "$ref" : "#/definitions/ErrorHeader" }, "error" : { "$ref" : "#/definitions/BusinessQueryErrorResponseBody" } }, "description" : "BusinessQueryErrorResponse" }, "BusinessQueryErrorResponseBody" : { "type" : "object", "properties" : { "code" : { "type" : "string", "description" : "The identifier of the error message" }, "message" : { "type" : "string", "description" : "The actual Transact error message for bad requests" }, "type" : { "type" : "string", "description" : "The identifier of error type: Business" } } }, "SystemQueryErrorResponse" : { "properties" : { "header" : { "$ref" : "#/definitions/ErrorHeader" }, "error" : { "$ref" : "#/definitions/SystemQueryErrorResponseBody" } }, "description" : "SystemQueryErrorResponse" }, "SystemQueryErrorResponseBody" : { "type" : "object", "properties" : { "code" : { "type" : "string", "description" : "The identifier of the error message" }, "message" : { "type" : "string", "description" : "The actual Transact error message caused by server" }, "type" : { "type" : "string", "description" : "The identifier of error type: System" } } } } }